package com.injurydetection.www.util.network;


import com.injurydetection.www.bean.PostBean;
import com.injurydetection.www.bean.PostBean2;
import com.injurydetection.www.bean.PostReceive2;
import com.injurydetection.www.bean.PostResponse;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

public interface ApiServer {
    /**
     * 上传数据
     *
     * @param postBean
     * @return
     */
    @Headers("Content-Type:application/json; charset=utf-8")
    @POST("napi/patientinjuryexamination")
    Observable<PostResponse> post(
            @Body PostBean postBean
    );

    @Headers({"base_url:two", "Content-Type:application/json; charset=utf-8"})
    @POST("triage-api/api/triage/upload")
    Observable<PostReceive2> post2(
            @Body PostBean2 postBean2
    );
}

